<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="description" content="">
		<meta name="author" content="">
		<title>Speed host</title>
		<link href="<?php echo base_url('assets/front/css/bootstrap.css');  ?>" rel="stylesheet" type="text/css" />
		<link href="<?php echo base_url('assets/front/css/jquery-ui-1.10.0.custom.css');  ?>" rel="stylesheet" type="text/css" />
		<link href="<?php echo base_url('assets/front/css/style.css');  ?>" rel="stylesheet" type="text/css" />
		
		<?php echo $this->template->stylesheet; ?>
		<script src="<?php echo base_url('assets/front/js/jquery-1.10.2.js');  ?>"></script>
		<script src="<?php echo base_url('assets/front/js/jquery-ui-1.9.2.custom.min.js');  ?>"></script>
		<?php echo $this->template->javascript; ?>
		<script type="text/javascript" src="<?php echo base_url('assets/front/js/bootstrap.js'); ?>"></script>
		<script type="text/javascript" src="<?php echo base_url('assets/front/js/jquery.validate.js'); ?>"></script>
		<script type="text/javascript" src="<?php echo base_url('assets/front/js/form_validation.js'); ?>"></script>
		
		<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
		<!--[if lt IE 9]>
		  <script src="<?php echo base_url('assets/front/js/html5shiv.js');?>"></script>
		  <script src="<?php echo base_url('assets/front/js/respond.min.js')?>"></script>
		<![endif]-->
		<?php echo $this->template->script; ?>
		<script>
		$(function(){
			topwraper=$('.topwraper').height();
			logowraper=$('.logowraper').height();
			$(window).bind('scroll', function() {
				 if ($(window).scrollTop() > topwraper+logowraper) {
					 $('.menuwraper').addClass('fixed');
					 $('#contentwrapper').css('padding-top',$('.menuwraper').height()+20+'px');
				 }
				 else {
					 $('.menuwraper').removeClass('fixed');
					 $('#contentwrapper').css('padding-top','0px');
				 }
			});
			$('.cart a').hover(function() {
				$('.cart').addClass('active');
				
				//$('.cart').load('index.php?route=module/cart #cart > *');
			});
			$('.cart').mouseleave(function() {
				$(this).removeClass('active');
			});
			$('.top-level-menu li a.active').parents('li:last').addClass('selected');
		});
		</script>
	</head>
	<body>
		<?php 
			header('Cache-Control: no-cache, no-store, must-revalidate'); // HTTP 1.1.
			header('Pragma: no-cache'); // HTTP 1.0.
			header('Expires: 0'); // Proxies.
			$member = $this->session->userdata('user');
			$last_login = $this->session->userdata('lastlogin');
			$settings=$this->general_model->select_val("setting","*","id = 1");
			$firstname=$member['firstname'];
			$lastname=$member['lastname'];
			$username=$member['username'];
			$id=$member['userid'];
			$groupid=$member['groupid'];
			$is_login=$member['logged_in'];
			
			
			//echo $is_login;
			$page=page();
			
			
		?>
		<div class="topwraper">
			<div class="topwraperinner">
				<div class="top"><a href="#">Language</a></div>
				<div class="left"><a href="#">My Account</a> / <a href="#">My Reports</a> / <a href="#">Account Settings</a></div>
				<div class="right">
					<a href="#">Special Offers</a> / 
					<a href="#">About Us</a> / 
					<a href="#">Help Center</a> 
					<span><a href="#"><i id="livechat" class="img-sprite"></i>Live Chat</a></span>
					<?php if($is_login){?>
					<span><a href="<?php echo base_url('users')?>"><i id="login" class="img-sprite"></i><?=$username?></a>|<a href="<?php echo base_url('users/logout')?>">Logout</a></span> 
					<?}else{?>
					<span><a href="<?php echo base_url('users/login')?>"><i id="login" class="img-sprite"></i>Login</a>|<a href="<?php echo base_url('users/register')?>">Register</a></span> 
					<?}?>
				</div>
			</div>
		</div>
		<div class="logowraper">
			<div class="logowraperinner">
				
				<div class="logo">
					<a href="<?php echo base_url();?>"><img src="<?php echo base_url('assets/uploads/images'); ?>/<?=$settings['site_logo']?>" border="0"></a>
				</div>
				
				<div class="right"> 
					<span>1 (425) 274-4500</span>
					<div>
						<form action="<?php echo base_url('users/search')?>" method="get">
							<input type="text" name="search" id="textfield" class="txtbox" placeholder="Register A Domain" />
							<input type="submit" id="button" value="Submit" class="srchbtn" />
						</form>
					</div>
				</div>
			</div>
		</div>
		<div class="menuwraper">
			<div class="menuwraperinner">
				<?php echo $this->template->widget("cms_menu_widget", array("menu_name"=>"top_menu","liaclass"=>"active")); ?>
				
				<div class="cart">
				
					<a href="#"><i id="cart" class="img-sprite"></i>My Cart</a>
					<div class="cart_content">
						<?php if(!empty($this->cartdetails)){?>
						<div class="panel panel-danger">
							<div class="panel-heading">Items In Cart</div>
							<div class="cart_item">
								<table class="table" >
									<tbody>
									<?php foreach($this->cartdetails as $item){?>
										<tr>
											<td><?=$item['name']?></td>
											<td><?=$item['price']?></td>
										</tr>
									<?}?>
									<tbody>
								</table>
							</div>
							<div class="panel-footer text-center">
								<a href="<?php echo base_url('users/cart')?>" class="btn btn-primary btn-xs">Checkout</a>
							</div>
						</div>
						<?}else{?>
						<div class="empty">Your shopping cart is empty!</div>
						<?}?>
					</div>
				
				</div>
			</div>
		</div>
		<div id="contentwrapper">
			<?php if($this->session->flashdata('message')){?>
			<div class="alert alert-success alert-dismissable flashmsg">
				<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
				<?php echo $this->session->flashdata('message'); ?>
			</div>
			
			<?}else{?>
			<div id="ajax_msg">
			
			</div>
			<?}?>
			<div id="contentwrapperinner">
				<?php echo $this->template->content; ?> 
			</div>
		</div>
		<div class="news">
			<marquee>
				<ul>
					<li>Your News Goes Here</li>
					<li>Your News Goes Here</li>
					<li>Your News Goes Here</li>
					<li>Your News Goes Here</li>
					<li>Your News Goes Here</li>
				</ul>
			</marquee>
		</div>
		<div class="support">
			<div>
				<span>need help?</span>
				<a href="#"><i id="livechat" class="img-sprite"></i>Live Chat</a><br />
				call our award - winning support team <i>24/7</i> at <i>(480) 505-8877</i>
			</div>
		</div>
		<div class="btmwraper">
			<div class="btmwraperinner">
				<div class="top">
					<div>
						<h2>About SpeedHost</h2>
						<ul>
							<?php echo $this->template->widget("cms_bmenu_widget", array("menu_name"=>"About SpeedHost","liaclass"=>"")); ?>
						</ul>
					</div>
					<div>
						<h2>Support</h2>
						<ul>
							<?php echo $this->template->widget("cms_bmenu_widget", array("menu_name"=>"Support","liaclass"=>"")); ?>
						</ul>
						
					</div>
					<div>
						<h2>Resources</h2>
						<ul>
							<?php echo $this->template->widget("cms_bmenu_widget", array("menu_name"=>"Resources","liaclass"=>"")); ?>
						</ul>
						
					</div>
					<div>
						<h2>My Account</h2>
						<ul>
							<?php echo $this->template->widget("cms_bmenu_widget", array("menu_name"=>"My Account","liaclass"=>"")); ?>
						</ul>
						
					</div>
					<div>
						<h2>Shopping</h2>
						<ul>
							<?php echo $this->template->widget("cms_bmenu_widget", array("menu_name"=>"Shopping","liaclass"=>"")); ?>
						</ul>
						
					</div>
				</div>
				<div class="left">
					<a href="#"><img src="<?php echo base_url('assets/front/images/google-aap.png');?>" /></a>
					<a href="#"><img src="<?php echo base_url('assets/front/images/app-store.png');?>" /></a>
				</div>
				<div class="right">
					Sign up for special offers:
					<label for="textfield2"></label>
					<input type="text" name="textfield2" id="textfield2" class="txtbox2" placeholder="Email Address"/>
					<input type="submit" name="button2" id="button2" value="Submit" class="submitbtn" />
				</div>
			</div>
		</div>
		<div class="socialwraper">
			<div class="socialwraperinner">
				<div class="left">
					Follow us
					<ul>
						<li class="img-sprite facebook"><a href="#">Facebook</a></li>
						<li class="img-sprite twitter"><a href="#">Twitter</a></li>
						<li class="img-sprite youtube"><a href="#">youtube</a></li>
					</ul>
				</div>
				<div class="right">
					<a href="#"><i class="img-sprite usa"></i>USA-English<i class="img-sprite arrow"></i></a>
					<a href="#">Currency <span>$</span><i class="img-sprite arrow"></i></a>
				</div>
			</div>
		</div>
		<div class="news">
			<marquee>
				<ul>
					<li>Your News Goes Here</li>
					<li>Your News Goes Here</li>
					<li>Your News Goes Here</li>
					<li>Your News Goes Here</li>
					<li>Your News Goes Here</li>
				</ul>
			</marquee>
		</div>
		<div class="footerwraper">
			<img src="<?php echo base_url('assets/front/images/footer-logo.jpg');?>" width="698" height="39" /><br />
			Use of this Site is subject to express terms of use. By using this site, you signify that you agree to be bound by these<br />
			<a href="#">Terms of Condition</a>|<a href="#">Privacy Policy</a><br />
			<br />
			<span>Copyright ©  2014 SpeedHost. All Rights Reserved.<br />
			Developed by: <a href="#">Speedhost</a></span>
		</div>
		<div class="modal modal-static fade" id="processing-modal" role="dialog" aria-hidden="true">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-body">
						<div class="text-center">
							<img src="<?=base_url('assets/front/img/ajax-loader.gif')?>" class="icon" />
							<h4>Processing... </h4>
						</div>
					</div>
				</div>
			</div>
		</div>
	</body>
</html>